import {defineConfig, loadEnv} from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig(({mode}) => {
    const env = loadEnv(mode, __dirname)
    console.log(env)
    return {
        plugins: [vue()],
        base:'./',
        server: {
            port: env.VITE_PORT
        },
        build: {
            outDir: "dist/render",
            assetsDir:'./static'
        }
    }
})